#pragma warning(disable : 4996)
#include"game.h"
int judge = 0;
int main()
{
	int winner = 1;
	srand((unsigned int)time(NULL));
	do {
		menu();
		judge=elect();
		if (judge == 1)
		{
			char arr[ROW][LIN];
			prepare_game(arr,ROW,LIN);
			while (1)
			{
				player(arr, ROW, LIN);
				winner=judge_(arr, ROW, LIN);
				if (winner == 0)
					break;
				computer(arr, ROW, LIN);
				winner=judge_(arr, ROW, LIN);
				if (winner == 0)
					break;
			}
		}
	} while (judge);
}